<template>
    <div>
        <!-- <div class="zs-card-sm zs-space-bottom zs-layout-flex-row">
            <el-select v-model="biProjectCode" class="zs-select-md zs-space-right-sm" placeholder="项目名称">
                <el-option v-for="item in projectList" :key="item.biProjectCode" :label="item.projectName"
                    :value="item.biProjectCode" />
            </el-select>
        </div> -->
		<el-scrollbar class="db-content-height">
            <div class="db-content-cards">
                <!-- <OrderAssay :companyPlatformId="companyPlatformId" :updateDate="updateDate"></OrderAssay> -->
                <IncomeAssay :companyPlatformId="companyPlatformId" :updateDate="updateDate"></IncomeAssay>
                <PartnerAssay :companyPlatformId="companyPlatformId" :updateDate="updateDate"></PartnerAssay>
                <!-- <ServiceAssay :companyPlatformId="companyPlatformId" :updateDate="updateDate"></ServiceAssay> -->
                <ProjectRanking :companyPlatformId="companyPlatformId" :updateDate="updateDate"></ProjectRanking>
            </div>
        </el-scrollbar>
        
    </div>
</template>
<script setup>

// import OrderAssay from '@/views/EnterpriseServices/components/orderAssay'
import IncomeAssay from '@/views/EnterpriseServices/components/incomeAssay'
import PartnerAssay from '@/views/EnterpriseServices/components/partnerAssay'
// import ServiceAssay from '@/views/EnterpriseServices/components/ServiceAssay'
import ProjectRanking from '@/views/EnterpriseServices/components/ProjectRanking'

// import dbPublicApi from '@/api/dbPublic'

import { ref } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute().query
const companyPlatformId = ref(route.companyPlatformId)
const updateDate = ref(route.updateDate)

// const projectCode = ref(route.projectCode)
// const updateDate = route.updateDate
// const tabPermi = route.tabPermi

// let projectList = ref([])
// const getList = () => {
//     dbPublicApi.queryProjectPcApi({ dataTime: updateDate, resourceKey: tabPermi }).then((res) => {
//         if (res.data.code == 200) {
//             projectList.value = res.data.data
//         }
//     })
// }
// getList()

// echat 柱图数据
// const echatData = ref({
//     "xData": ["4.13", "4.15", "4.16", "4.17", "4.18", "4.19", "4.20", "4.21"],
//     "xLable": ["4月14日", "4月15日", "4月16日", "4月17日", "4月18日", "4月19日", "4月20日", "4月21日"],
//     "yData": [
//         {
//             "name": "当年",
//             "type": "bar",  // 当前内容显示的图形类型
//             "data": [30, 60, 20, 50, 30, 80, 100, 120],
//             "unit": "%", // 当前内容百分比的单独加单位字段。默认没有单位。data中不能出现%
//             "isShow": true, // 当前内容是否显示 true表示在图表中绘制，false代表只在提示框出现
//             "color": '#ED1A2C' // 代表当前图形颜色 默认不需要传，特殊需求的需要。比如环形图
//         },
//         {
//             "name": "当周日均",
//             "type": "bar",
//             "data": [120, 200],
//             "isShow": false
//         },
//         {
//             "name": "同比上周",
//             "type": "bar",
//             "data": [20, 40],
//             "unit": "%",
//             "isShow": false
//         }
//     ]
// })

</script>

<style scoped lang="scss"></style>
